package com.wj.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/prop")
@RestController
public class PropertiesController {
    @Value("${bite.key1}")
    private String key1;
    @RequestMapping("/readValue")
    public String readValue(){
        return "从properties读取配置文件，key1:"+key1;
    }
}